import arrayToTree from 'array-to-tree'

export const TreeTool = (array, pid, id) => {
  return arrayToTree(array, {
    parentProperty: pid,
    customID: id
  })
}
